package uk.co.biggroup.lotto.syndicate.dataset;

public class DataLineEuroMillions extends DataLine {

	public DataLineEuroMillions(String numbers, String raffle) {
		this.setLine(numbers, raffle);
	}
	
	@Override
	protected void setLine(String numbers, String raffle) {
		this.raffle = raffle;
		this.numbers = numbers;
		String[] temp = numbers.split(DELIMITER);
		for(int i=0; i < temp.length; i++) {
			this.cnumber = new int[5];
			this.cnumberx = new int[2];
			if (i <= 4) {
				this.cnumber[i] = Integer.parseInt(temp[i]);
			} else {
				this.cnumberx[i-5] = Integer.parseInt(temp[i]);
			}
		}
		// TODO split string to numbers and cast each to int 		
	}

}
